//
//  SHYCommonTool
//  Pods
//
//  Created by sunhaiyan on 16/6/28.
//
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

@interface NSStringWithColor : NSObject
/**
 *  处理带有{}的字符串
 *
 *  @param  输入 str
 *
 *  @return 输出
 */
+(NSString *)getNewString:(NSString *)str;
/**
 *最多支持2个{}
 *
 *  @param str    输入str
 *  @param lColor 高亮颜色
 *  @param nColor 普通颜色
 *  @param afont  字体大小
 *
 *  @return  NSMutableAttributedString
 */
+(NSMutableAttributedString *)getAttibutedString:(NSString *)str lightColor:(UIColor *)lColor normalColor:(UIColor *)nColor font:(UIFont *)afont;

+(NSMutableAttributedString *)getAttibutedString:(NSString *)str lightColor:(UIColor *)lColor normalColor:(UIColor *)nColor lightFont:(UIFont *)lfont normalFont:(UIFont *)nfont;


@end
